{% extends "../base.html" %} 
{% block parent_title %}专题管理 {% endblock %} 
{% block parent_url %}subject{% endblock %}
{% block title %}添加专题{% endblock %}
{% block content %}
<form action="/admin/subject/add" method="post">
    <div class="form-group">
        <label for="name">名称</label>
        <input type="text" class="form-control" id="name" name="name" placeholder="专题名称" required>
    </div>
    <div class="form-group">
        <label for="slug">固定链接</label>
        <input type="text" class="form-control" id="slug" name="slug" placeholder="固定链接" required>
    </div>
    <div class="form-group">
        <label for="summary">摘要</label>
        <textarea class="form-control" name="summary" id="summary" rows="3" placeholder="摘要" required></textarea>
    </div>
    <button type="submit" class="btn btn-primary">提交</button>
</form>
{% endblock %}
